/*
 * REFXMLSchemaInfo.cpp
 *
 *  Created on: Mar 31, 2013
 *      Author: Lucifer
 */

#include "../../pch.h"
#include "REFXMLSchemaInfo.h"

namespace	BFX
{

void REFXMLSchemaInfo::Finish()
{
	REFXMLSchemaElementDeclMap* pElements = m_pElementDecls;
	for (int i = 0; i < 2; i ++)
	{
		for (REFXMLSchemaElementDeclMap::POSITION entry = pElements->GetFirstEntry();
			entry != NULL;
			entry = pElements->GetNextEntry(entry))
		{
			REFXMLSchemaElementDecl* pDecl = entry->value;
			if (pDecl->HasNonCDataAttribute())
			{
				m_bHasNonCDataAttributes = true;
			}
			if (pDecl->HasDefaultAttribute())
			{
				m_bHasDefaultAttributes = true;
			}
		}
		pElements = m_pUndeclaredElementDecls;
	}
}

}	//	namespace BFX
